public class Rectangle extends PlaneGraphic
{
    private double a, b;

    public Rectangle(int a, int b)
    {
        this.a = a;
        this.b = b;
    }

    public double CalculateArea()
    {
        return a * b;
    }

    public double CalculatePerimeter()
    {
        return (a + b) * 2;
    }
}
